//
//  AppUtils.h
//  YouthOlympic2014
//
//  Created by Li Yuhang on 14-7-1.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import <Foundation/Foundation.h>


#define dayOffset 10

@interface AppUtils : NSObject
//获取青奥所需的语言版本
+ (NSString*)getLan;

+ (NSDateComponents*) getDateComponetsFromNSDate:(NSDate*) date;
//获取当日日期，如当天4号则返回4
+ (NSInteger)getCurDay;

//获取青奥范围内的当日日期（14-28号），如当日4号返回14， 当日15号返回15， 当日29号返回28
+ (NSInteger)getCurDayInYogRange;

//把当前日期转换为20130816133000形式
+ (NSString*)getCurYMDDateStrInYogRange;
+ (NSString*)getYMDDateStrInYogRangeFromNSDate:(NSDate*) date;


//把字符串20130816133000形式的时间转换成字典{year:"2013",month:"08",day:"16",hour:"13",mintue:"30",second:"00"}
+ (NSDictionary*)parseApiTimeToDictionary: (NSString*) timeStr;

//把Unicode字典转换成string 便于打印
+ (NSString *)replaceUnicodeDic:(NSDictionary *)dic;


+ (NSString*)getCurDayDescriptionInYogRange;

+ (UIImage*) getPlaceIcon:(NSString*) placePicTag;

+ (NSString*) getTodayDescriptionForListHeaderView;
@end
